﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ForumMaster.Master" AutoEventWireup="true"
    CodeBehind="ShowMessage.aspx.cs" Inherits="FilStartUps.Forum.ShowMessage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<%@ Register Src="../Controls/FilStartUps_PageNav.ascx" TagName="FilStartUps_PageNav"
    TagPrefix="uc1" %>
<asp:Content ID="Nav" ContentPlaceHolderID="MainNav" runat="server">
    <uc1:FilStartUps_PageNav ID="FilStartUps_PageNav1" runat="server" />
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="ContentForumDisplay" runat="server">
    <div class="location">
        <asp:ImageButton runat="server" ImageUrl="~/Content/images/feed-icon.png" AlternateText="Thread RSS" />
        <h2>
            <asp:HyperLink ID="homelink" runat="server" NavigateUrl="~/Forum/ForumDisplay.aspx">Home</asp:HyperLink>
            &raquo;
            <asp:HyperLink runat="server" ID="forumlink"></asp:HyperLink>
            &raquo;
            <asp:Label runat="server" ID="lbthreadname"></asp:Label>
        </h2>
    </div>
    <asp:LinkButton runat="server" ID="lbreply" OnClick="lbreply_Click">Reply</asp:LinkButton>
    <asp:Repeater ID="rptMessagesList" runat="server" EnableViewState="False">
        <HeaderTemplate>
            <table style="width: 100%;" cellpadding="19">
        </HeaderTemplate>
        <ItemTemplate>
            <tr valign="top">
                <td style="width: 120px" rowspan="2">
                    <%-- <a name='post<%# Eval("MessageID") %>'></a><span class="gray"> --%>
                    <asp:Label runat="server" Visible="false" ID="lbmsgid" Text='<%# DataBinder.Eval(Container.DataItem, "forummsgidPK") %>'></asp:Label>
                    <asp:Label runat="server" CssClass="gray" Text='<%# DataBinder.Eval(Container.DataItem, "dateposted") %>'></asp:Label>
                    <br />
                    <br />
                    <asp:Image runat="server" Width="64px" Height="64px" ImageUrl='<%# "../FilStartUps.ashx?id=" + Eval("memberidFK") + "&cat=" + 1 %>' />
                    <br />
                    <asp:Label runat="server" ID="lbmembername_">hello</asp:Label>
                    <br />
                    <asp:Label runat="server" ID="lbtotalpost_">Total Post</asp:Label>
                </td>
                <td style="border-bottom: none;">
                    <asp:Literal ID="ltrBody_" Text='<%# DataBinder.Eval(Container.DataItem, "message") %>'
                        runat="server">
                        
                    </asp:Literal>
                </td>
            </tr>
            <tr>
                <td valign="bottom" align="right" class="gray" style="border-top: none;">
                    <%--<%# RenderMsgRating(Eval("MessageID"), Eval("Rating")) %>--%>
                    <asp:LinkButton ID="btnComplain" Visible="True" runat="server" CommandName="complain"
                        meta:resourcekey="btnComplainResource1">&bull; Report to Moderator</asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <asp:Repeater ID="rptPages" runat="server">
        <HeaderTemplate>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                        <b>Page:</b> &nbsp;
                    </td>
                    <td>
        </HeaderTemplate>
        <ItemTemplate>
             <asp:LinkButton ID="btnPage" runat="server" CommandArgument='<%# Container.DataItem %>' CommandName="Page">
                <%# Container.DataItem %>
             </asp:LinkButton> &nbsp;
        </ItemTemplate>
        <FooterTemplate>
            </td> </tr> </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
